home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000018_news@newsmaster….columbia.edu _Sat May 2 13:47:50 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA06393
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sat, 2 May 1998 13:47:50 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA10815
  7.     for kermit.misc@watsun; Sat, 2 May 1998 13:47:50 -0400 (EDT)
  8. Path: news.columbia.edu!not-for-mail
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Help With File Download
  12. Date: 2 May 1998 13:47:46 -0400
  13. Organization: Columbia University
  14. Lines: 62
  15. Message-ID: <6ifm82$67l@watsun.cc.columbia.edu>
  16. References: <6iffut$8v7@bgtnsc01.worldnet.att.net>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8669
  19.  
  20. In article <6iffut$8v7@bgtnsc01.worldnet.att.net>,
  21. Bernie  <bfb@worldnet.att.net> wrote:
  22. : I'm using Kermit 6 to login to a remote PC and download
  23. : two .zip files using the kermit protocol.  It works OK for the first
  24. : file, but then seems to hang when attempting to get the
  25. : second.
  26. : Here is an excerpt of the script:
  27. : input 5 Your choice?
  28. : output k                            #Select k for kermit protocol
  29. : input 5 File name?
  30. : output file1.zip\13
  31. :
  32. So evidently the PC has some kind of menu and your Kermit script is
  33. pretending to interact with it, as you would do when your are typing
  34. in CONNECT mode.  So far so good...
  35.  
  36. : server
  37. : get file1.zip
  38. : get file2.zip
  39. : bye
  40. Here is where you go wrong.  You are putting C-Kermit (I assume that
  41. is what you mean by "Kermit 6" in server mode.  But the remote PC is
  42. still at its menu.  So how will they communicate?  Furthermore, the two
  43. "get" commands will never be executed, since C-Kermit will remain in
  44. server mode until commanded by the client to leave it, but there is no
  45. client.
  46.  
  47. What to do:
  48.  
  49.  1. Obtain a copy of the manual:
  50.  
  51.       http://www.columbia.edu/kermit/ck60manual.html
  52.  
  53.     and read the chapters on script programming.
  54.  
  55.  2. Change your script as follows:
  56.  
  57.       input 5 Your choice?
  58.       if fail stop 1 No protocol prompt
  59.       output k
  60.       input 5 File name?
  61.       if fail stop 1 No Filename prompt
  62.       output file1.zip\13
  63.       receive
  64.       if fail stop 1 Download of file1.zip failed
  65.  
  66.     I don't know what the remote PC does after a transfer.  Does it give
  67.     another "File name?" prompt?  Assuming it does, the next part is:
  68.  
  69.       input 5 File name?
  70.       if fail stop 1 No Filename prompt
  71.       output file2.zip\13
  72.       receive
  73.       if fail stop 1 Download of file2.zip failed
  74.  
  75. Now have your script do whatever it must do to log out, close the connection,
  76. or whatever else you want it to do.
  77.  
  78. - Frank